projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be29e76
)
(battery-linux-proc-acpi): Look into battery
author
Eli Zaretskii
<eliz@gnu.org>
Sat, 14 Aug 2004 12:21:03 +0000
(12:21 +0000)
committer
Eli Zaretskii
<eliz@gnu.org>
Sat, 14 Aug 2004 12:21:03 +0000
(12:21 +0000)
directories matching the literal string "CMB", too (required for
Linux kernel version 2.6.7).
lisp/battery.el
patch
|
blob
|
history
diff --git
a/lisp/battery.el
b/lisp/battery.el
index 73d780675718c9e614e231cfa80b038c3257cc40..3b44ff891f96352a99a276edd7d69e02930d5bbd 100644
(file)
--- a/
lisp/battery.el
+++ b/
lisp/battery.el
@@
-290,7
+290,7
@@
The following %-sequences are provided:
nil t)
(setq low (+ (or low 0)
(string-to-int (match-string 1))))))))
- (directory-files "/proc/acpi/battery/" t "
BAT
")))
+ (directory-files "/proc/acpi/battery/" t "
\\(BAT\\|CMB\\)
")))
(and capacity rate
(setq minutes (if (zerop rate) 0
(floor (* (/ (float (if (string= charging-state